<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/**
 * Abstract Class for all Front-End Controllers
 *
 * @author	kimon.web.designs - Application Framework
 * @package 	CMS
 * @subpackage 	Public_Controller
 * @category 	Framework
 * @copyright	Copyright (c) 2011, kimon.web.design
 */

class Public_Controller extends MY_Controller
{

    protected $site_lang = '';

    /**
     * Constructor method
     * @access public
     * @return void
     */
    public function  __construct() {
        parent::__construct();

        $this->site_lang = $this->config->item('language_abbr');

        $this->load->helper('navigation/cms_menu');
    }

    /**
     * load variables for theme usage
     *
     * @access protected
     * @return void
     */
    protected function loadVars()
    {
    }


    /**
     * override render function to include loading vars
     *
     * @access protected
     * @return void
     */
    protected function render()
    {
        $this->loadVars();
        parent::render();
    }

    /**
     * set the Master Template of the Controller
     *
     * @access protected
     * @return void
     */
    protected function __defineTemplateView()
    {
        $this->template_name = 'default';
    }

    /**
     * set if the Controller needs Authentication
     *
     * @access protected
     * @return void
     */
    protected function __defineAuthentication()
    {
        $this->needs_authentication = FALSE;
    }

}

/* End of file Public_Controller.php */
/* Location: ./application/core/Public_Controller.php */